package nl.altenpts.net.broker;

import java.security.PublicKey;

/**
 * Interface for incoming message hook
 * 
 * @author fabian
 *
 */
public interface SignedMessageHook {
	
	/**
	 * Called on incoming message
	 * 
	 * @param message the incoming message
	 * @param key the key with which the message was verified
	 */
	public void onIncoming(IncomingMessage message, PublicKey key);
}
